package com.lnb.entity;

import java.time.LocalDateTime;
import java.util.Date;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author liruirui
 * @since 2020-05-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Users对象", description="")
public class Users implements Serializable {

    private static final long serialVersionUID = 1L;
    
    @TableId(value="id",type = IdType.AUTO)
    private Integer id;
    
    @NotNull
	@Size(min = 2, max = 11, message = "账号长度必须是2-11个字符")
    private String loginName;

    private String password;

    private String isLockout;

    private Date lastLoginTime;

    private Date creatTime;

    private Integer psdWrongTime;

    private LocalDateTime lockTime;

    private String protectEmail;

    private String protectMtel;


}
